<include file="Layout/header" />




     <div class="col-8" id="main"> 



      <div class="res-cons"> 
  
      <foreach name="data" item="v"> 
       <article class="post"> 
        <h1 class="post-title">{$v['title']}</h1> 
        <ul class="post-meta"> 
         <li>{$v['addtime']}</li> 
         <li class="comment-count">
             <a href="" title="《{$v['title']}》上的评论">{$v['comment_num']}&nbsp;&nbsp;&nbsp;条评论</a></li> 
        </ul> 
        <div class="post-content">
          <div style="width: 869px;overflow:hidden;">
            <?php echo htmlspecialchars_decode($v['content']);?> 
            
          </div>
<!--         <pre>
         </pre> -->
        </div> 
       </article> 
      </foreach>

       
       <div id="comments"> 
        <h3 class="widget-title">
          <a href="" title="《centos安装mysql》上的评论">评论</a>

        </h3> 
        <ol class="comment-list"> 
        <foreach name="cmt" item="val">
         <li class="comment even thread-even"> 

          <div  class="comment-body"> 
           <div class="comment-author"> 
            <img alt="" src="__PUBLIC__/Home/articleinfo/201711161128048216.png" class="avatar avatar-32 photo" height="32" width="32" /> 
            <cite class="fn" style="margin-top: 20px;">&nbsp;&nbsp;{$val['name']}</cite> 
           </div> 
           <div class="comment-meta">
             {$val['comment_time']}
           </div> 
           <div class="comment-content"> 
            <p></p>
            <h3>&nbsp;&nbsp;&nbsp;{$val['content']}</h3> 
            <p></p> 
           </div> 
           <div class="comment-reply"> 
            <a class="comment-reply-link" href="javascript:;" style="margin-left: 680px;">回复</a> 
           </div> 
          </div> 
        </li> 

      </foreach>
        </ol> 

        <div id="respond" class="respond"> 
         <div class="cancel-comment-reply"> 
          <a rel="nofollow" id="cancel-comment-reply-link" href="" style="display: none;">点击这里取消回复。</a> 
         </div> 
         <h3 id="response">添加新评论</h3> 
         <form method="post" action="{:U('Home/Comment/addComment')}" > 
          <!--  <-->  
          <div class="col1"> 
           <p> <textarea rows="8" cols="50" name="content" class="textarea"></textarea> </p> 
          </div> 
          <div class="col2"> 
           <p> <label for="author" class="required">称呼</label> 
            <input name="name" id="author" class="text" value="" type="text" /> 
          </p> 
           <p> <label for="mail" class="required">邮箱</label> 
            <input name="email" id="mail" class="text" value="" type="email" /> 
          </p> 
           <p> <label for="url">网站</label> 
            <input id="url" class="text" placeholder="网站域名" value="" type="url" /> 
            <input type="hidden" name="a_id" value="{$data[0]['id']}"> 
           </p> 
           <p> <button type="submit"  class="submit">提交评论</button> </p> 
          </div> 
          <div class="clear"></div> 
         
         </form> 
        </div> 
       </div> 
      </div> 
     </div> 
<include file="Layout/footer" />

